<?php

class IndexController extends ApiController {

	/**
	 * 输出 json 范例
	 * URL: /WitSdk-Dev/www/index.php/plugin/Sample/v1/index
	 */
	public function indexAction() {
		$list = Model_Member::getList();
		$this->successMessage('', array('list' => $list));
	}

	/**
	 * 输出模板范例
	 * URL: /WitSdk-Dev/www/index.php/plugin/Sample/v1/index/show
	 */
	public function showAction() {
		$this->G['hello'] = 'WitFrame';
		$this->template('sample');
	}

}
